# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=rtlizer
pkgver=35.5614163
pkgrel=2
groups=('blackarch' 'blackarch-scanner' 'blackarch-radio')
pkgdesc='Simple spectrum analyzer.'
arch=('x86_64' 'aarch64')
url='https://github.com/csete/rtlizer'
license=('custom:unknown')
depends=('rtl-sdr' 'gtk3' 'cairo')
makedepends=('git')
source=("git+https://github.com/csete/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

build() {
  cd $pkgname

  cd src

  make
}

package() {
  cd $pkgname

  install -Dm 755 "src/$pkgname" "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname" README.md news.txt
}

